Skip to content

Start testing Python 3.15#21439

Merged
hauntsaninja merged 6 commits intopython:masterfrom
cdce8p:ci-python-315
May 9, 2026
Merged

Start testing Python 3.15#21439
hauntsaninja merged 6 commits intopython:masterfrom
cdce8p:ci-python-315

Conversation

@cdce8p
Copy link
Copy Markdown
Collaborator

@cdce8p cdce8p commented May 8, 2026

The first beta for Python 3.15 was released yesterday. Start running CI tests for it.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@cdce8p cdce8p marked this pull request as draft May 8, 2026 14:44
@github-actions

This comment has been minimized.

@cdce8p cdce8p marked this pull request as ready for review May 8, 2026 23:26
Comment on lines +4 to -6
#include <Python.h>
#include <stdbool.h>
#include <stdint.h>
#include <Python.h>
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some librt tests only compile individual c files. If Python.h isn't included first, these tests would raise ‘_POSIX_C_SOURCE’ redefined warnings on Python 3.15.

See https://bugzilla.redhat.com/show_bug.cgi?id=2416110 for a similar issue
https://docs.python.org/3/c-api/intro.html#include-files

--
No need to backport anything specifically as building librt completely works fine already. It's just if only individual files are compiled.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a few more instances, so decided to create a separate PR after all. #21446

@github-actions

This comment has been minimized.

Comment thread pyproject.toml
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For 3.14 we added the classifier during the beta as well, once all tests passed. See #19199.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay with this, but it would be nice to make sure we support some of the headline features like lazy imports before we make a release with this classifier

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lazy imports do actually work already. At least with the "old" parser. See #20978 for more on that.

I'd be ok with removing the classifier for now if that's blocking the merge for you. We can always add it later as long as we don't forget to.

@cdce8p cdce8p requested a review from hauntsaninja May 8, 2026 23:36
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Copy Markdown
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

@hauntsaninja
Copy link
Copy Markdown
Collaborator

Cool, I filed #21447

@hauntsaninja hauntsaninja merged commit 46acbe8 into python:master May 9, 2026
25 checks passed
@cdce8p cdce8p deleted the ci-python-315 branch May 9, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants